package com.itheima.demo01lambda;

/**
 * @author chenming
 * Date  2023/6/6 16:13
 * @version 1.0
 * description
 */
public class Demo04LambdaImpl {
    public static void main(String[] args) {
        eat(()->{
            System.out.println("Lambda表达式中的游泳");
        });
    }

    public static void eat(Swimmable swimmable) {
        swimmable.swimming();
    }
}
